package common;

import Utils.Config;
import Utils.ExcelReader;
import Utils.Request;

import java.util.List;

/**
 * Created by 80736 on 2017/7/2.
 */
public class LoginAccount {

    /**
     * 登陆账号，要保证表格第一行内是登陆接口
     */
    public static void login() {
        ExcelReader reader = new ExcelReader();
        List<ServerInterface> sList = reader.getExcelData(Config.TESTCASE_FILE_PATH);
        ServerInterface server = sList.get(0);
        Request.post(server.getHost(), server.getUrl(), server.getHeader(), server.getBody());
    }

}
